const schemas = {
  "addEngine": {
    "responses": {
      "200": {
        "type": "object",
        "properties": {
          "optResult": {
            "type": "number",
            "description": "值为0，操作成功"
          },
          "msg": {
            "type": "string",
            "description": "操作失败说明"
          }
        },
        "required": [
          "optResult"
        ],
        "$schema": "http://json-schema.org/draft-04/schema#"
      }
    }
  },
  "deleteEngine": {
    "responses": {
      "200": {
        "type": "object",
        "properties": {
          "optResult": {
            "type": "number",
            "description": "值为0，操作成功"
          },
          "msg": {
            "type": "string",
            "description": "操作失败说明"
          }
        },
        "required": [
          "optResult"
        ],
        "$schema": "http://json-schema.org/draft-04/schema#"
      }
    }
  },
  "modEngine": {
    "responses": {
      "200": {
        "type": "object",
        "properties": {
          "optResult": {
            "type": "number",
            "description": "值为0，操作成功"
          },
          "msg": {
            "type": "string",
            "description": "操作失败说明"
          }
        },
        "required": [
          "optResult"
        ],
        "$schema": "http://json-schema.org/draft-04/schema#"
      }
    }
  },
  "getEngine": {
    "responses": {
      "200": {
        "type": "object",
        "properties": {
          "optResult": {
            "type": "number",
            "description": "值为0，操作成功"
          },
          "msg": {
            "type": "string",
            "description": "操作失败说明"
          },
          "totalDataCount": {
            "type": "number",
            "description": "总记录数"
          },
          "engines": {
            "type": "array",
            "description": "引擎列表",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "number",
                  "description": "引擎id标识"
                },
                "engineName": {
                  "type": "string",
                  "description": "引擎名称"
                },
                "engineType": {
                  "type": "string",
                  "description": "引擎类型"
                },
                "clusterName": {
                  "type": "string",
                  "description": "集群名称"
                },
                "capacity": {
                  "type": "number",
                  "description": "虚机所支持容量"
                },
                "create_by": {
                  "type": "string",
                  "description": "创建者"
                },
                "create_date": {
                  "type": "string",
                  "description": "创建时间"
                },
                "update_by": {
                  "type": "string",
                  "description": "更新者"
                },
                "update_date": {
                  "type": "string",
                  "description": "更新时间"
                }
              },
              "required": [
                "id",
                "engineName",
                "engineType",
                "clusterName",
                "capacity",
                "create_by",
                "create_date",
                "update_by",
                "update_date"
              ]
            }
          }
        },
        "required": [
          "optResult",
          "totalDataCount",
          "engines"
        ],
        "$schema": "http://json-schema.org/draft-04/schema#"
      }
    }
  }
}

export default schemas;
